package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

@Data
@ApiModel("产品规格")
@TableName
public class Sku {
    @TableId(value = "sku_id",type = IdType.AUTO)
    Integer sku_id;
    Integer spu_id;
    String sku_name;
    String attrs;
    String img_url;
    Integer price_fee;
    Integer market_price_fee;
    String party_code;
    String model_id;
    Double weight;
    Double volume;
    Integer status;

    @TableField(exist = false)
    Integer actual_stock;//实际库存
}
